﻿using UnityEngine;
using System.Collections;


public class PlayBtnAudio : MonoBehaviour {
    public AudioClip audioClip;
    string audioName
    {
        get
        {
            return audioClip.name;
        }
    }

    void OnClick()
    {
        if (!string.IsNullOrEmpty(audioName))
            AudioManager.Instance.PlayUIAudio(audioName);
    }
}
